package com.eascs.brand.controller;

import java.util.Date;

import com.eascs.admin.loanapplyoplog.LoanapplyOpLog;
import com.eascs.admin.recordlog.constant.O2oLogType;
import com.eascs.site.controller.BaseRestController;

public class O2oBiscController extends BaseRestController{

	public LoanapplyOpLog getEntity(String opPsn, String type, String up, String down){
		LoanapplyOpLog log = new LoanapplyOpLog();
		log.setOpPsn(opPsn);
		log.setOpType(type);
		log.setOpTypeName(O2oLogType.getStringName(type));
		log.setOpDate(new Date());
		log.setOpContentUp(up);
		log.setOpContentDown(down);
		return log;
	}
}